package com.lanyam.travel.base.entity.base;


import com.lanyam.travel.base.utils.StateUtils;

public class BaseResponse {

    private Integer errcode;

    public static BaseResponse getInstance(int errcode) {
        BaseResponse response = new BaseResponse();
        response.errcode = errcode;
        return response;
    }

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public static BaseResponse ok(){
        BaseResponse response = new BaseResponse();
        response.setErrcode(StateUtils.ERRCODE_OK);
        return response;
    }
}
